package com.li.designpattern.simplefactory;

public class SimpleFactory {
	public static Operation getOperation(String operation){
		Operation o=null;
		switch(operation){
			case "+":o=new Addition();break;
			case "-":o=new Subtraction();break;
			case "*":o=new Multiplication();break;
			default :o=new Addition();
		}
		return o;
	}

}
